React = React||{}
var ServiceItem = require('./ServiceItem.js');
var Front = React.createClass({
	getInitialState:function(){
		return {data:['service','massagist','store']};
	},
	render: function(){
		var nodes = this.state.data.map(function (blockType) {
			return  (<ServiceItem type={blockType}/>);
		});
		return <div>{nodes}</div>;
	}, 
});

var target = document.querySelector('#f_store')||$('.itemBox').prepend('<div id="f_store"/>')
React.render(<Front/>,document.querySelector('#f_store'));
